package com.infitecs.eyas.quality.dao;

import com.infitecs.eyas.quality.model.Industry;
import com.infitecs.krill.mybatis.annotation.mybatisRepository;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Demon on 2015/4/23.
 */
@mybatisRepository
public interface IndustryDao {

    boolean updateIndustry(Industry industry);

    boolean updateMar(@Param("mar") double mar, @Param("caseId") int caseId);

    boolean updateMad(@Param("mad") double mad, @Param("caseId") int caseId);

    boolean updateAar(@Param("aar") double aar, @Param("caseId") int caseId);

    boolean updateMf(@Param("mf") double mf, @Param("caseId") int caseId);

    boolean updateVdaf(@Param("vdaf") double vdaf, @Param("caseId") int caseId);

    boolean updateVar(@Param("var") double var, @Param("caseId") int caseId);

    Industry getIndustryByPowerCaseId(@Param("caseId") int caseId);

    void addIndustry(Industry industry);
}
